package com.example.hand.bean;

import org.springframework.stereotype.Component;

import java.io.Serializable;

@Component //把普通pojo实例化到spring容器中，相当于配置文件中的<bean id="" class=""/>
public class Order implements Serializable {
    private Integer order_id;
    private String customer_id;
    private String staff_id;
    private String cargo;
    private String address;
    private String money;
    private String order_date;
    private String delivery_date;
    private String status;

    public Integer getOrder_id() {
        return order_id;
    }
    public void setOrder_id(Integer order_id) {
        this.order_id = order_id;
    }
    public String getCustomer_id() {
        return customer_id;
    }
    public void setCustomer_id(String customer_id) {
        this.customer_id = customer_id;
    }
    public String getStaff_id() {
        return staff_id;
    }
    public void setStaff_id(String staff_id) {
        this.staff_id = staff_id;
    }
    public String getCargo() {
        return cargo;
    }
    public void setCargo(String cargo) {
        this.cargo = cargo;
    }
    public String getAddress() {
        return address;
    }
    public void setAddress(String address) {
        this.address = address;
    }
    public String getMoney() {
        return money;
    }
    public void setMoney(String money) {
        this.money = money;
    }
    public String getOrder_date() {
        return order_date;
    }
    public void setOrder_date(String order_date) {
        this.order_date = order_date;
    }
    public String getDelivery_date() {
        return delivery_date;
    }
    public void setDelivery_date(String delivery_date) {
        this.delivery_date = delivery_date;
    }
    public String getStatus() {
        return status;
    }
    public void setStatus(String status) {
        this.status = status;
    }
    @Override
    public String toString() {
        return "Order [order_id=" + order_id + ", customer_id=" + customer_id + ", staff_id=" + staff_id + ", cargo="
                + cargo + ", address=" + address + ", money=" + money + ", order_date=" + order_date
                + ", delivery_date=" + delivery_date + ", status=" + status + "]";
    }



}
